// JavaScript Document

//测试
$(document).ready(
	function()
	{
		var images = $("." + contentDivClass + " img");
		var imageMaxWidth = parseInt(images.css("max-width"));
		var imageCount = images.length;
		for (var i = 0; i < imageCount; i++)
		{
			var image = images[i];
			var iamgeWidth = image.width;
			if (iamgeWidth >= imageMaxWidth)
			{
				var imageSrc = image.src;
				var imageTitle = image.alt;
				var a = $('<a href="' + imageSrc + '" title="' + imageTitle + '" class="thickbox" rel="gallery-photos"></a>');
				$(image).wrap(a);
			}
		}
	}
);